'''用户管理模块的接口
'''
def register(url,data,baseRqquest):
    '''
    发送注册请求
    :param url: 请求地址
    :param data:注册需要的用户数据
    :param baseRqquest:baseRequest对象
    :return:
    '''
    url = url + 'futureloan/mvc/api/member/register'
    return baseRqquest.post(url,data=data)


def login (url,data,baseRequests):

    '''
    发送注册请求
    :param url: 请求地址
    :param data:用户登录数据
    :param baseRqquest:baseRequest对象
    :return:
    '''
    url = url  + 'futureloan/mvc/api/member/login'

    return baseRequests.post(url,data=data)
def list (url,baseRequests):

    url = url  + 'futureloan/mvc/api/member/list'
    return baseRequests.post(url)
